import http from "@utils/request.js"
import api from "@api/index.js"
export default{
    state: {
        hot:[]
    },
    mutations: {
        getHomeData(state,data){
            state.hot = data;
         }
    },
    actions: {
        async getHomepage({commit}){
            let data=await http({
                method:"get",
                url:api.home.homepage
            })
            console.log(data.result)
            commit("getHomeData",data.result.activityList)
            
            // commit("getHomeData",data)
          
            // 下面页面的数据
        }
    },
    namespaced:true
}